// index.less
.news-list {
  max-width: 1200px;
  width: 1299px;
  margin: 0 auto;
  padding: 16px;
  display: flex;
  flex-wrap: wrap;


  .news-menu {
    width: 255px;
  }
  
  .news-cards {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;

    .ant-card {
      width: calc(100% - 8px);
      display: flex;
      align-items: flex-start;
      padding: 8px; /* 添加内边距 */
     
      
      &.ant-card:hover {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* 增强阴影效果 */
        transition: box-shadow .7s ease; /* 平滑过渡效果 */
        cursor: pointer;
      }

      .ant-card-cover {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 150px;
        height: 100%; /* 设置为卡片的高度 */
        img {
          max-width: 100%;
          height: 100%; /* 图片的高度设置为容器的100% */
          object-fit: cover; /* 图片保持纵横比并填充空间 */
        }
      }

      .ant-card-body {
        width: calc(100% - 150px);
      }
      
      .ant-card-meta {
        padding: 8px; /* 内容周围的内边距 */
        
        .news-card-meta-description {
          overflow: hidden;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-line-clamp: 1; /* 控制显示行数 */
          -webkit-box-orient: vertical;
        }
      }
    }
  }

  .news-pagination{
    margin-top: 8px;
    width: 100%;
    display: flex;
    justify-content: end;
  }

  margin-bottom: 70px;
}